package com.wwmz.adapter.pattern.demo.login.v2.adapters;

import com.wwmz.adapter.pattern.demo.login.PassportService;
import com.wwmz.adapter.pattern.demo.login.ResultMsg;

/**
 * Created by wumz on 2020/9/20 17:09
 */
public abstract class AbstraceAdapter extends PassportService implements ILoginAdapter {

    protected ResultMsg loginForRegist(String username, String password){
        if(null == password){
            password = "THIRD_EMPTY";
        }
        super.regist(username,password);
        return super.login(username,password);
    }
}
